package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"weekFirst/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/login", &controllers.UserController{}, "POST:Login")

	beego.Router("/find", &controllers.FriendController{}, "GET:Find")

	beego.Router("/chat/im", &controllers.ChatController{}, "GET:ChatIm")
}
